Examples of macros


Example 1: Macro with button control assignments

Let's make a macro out of the following button assignment (S1 is a button label):

S1 SENDS SHF f REM death ray

Take the keystroke sequence on the right side of the SENDS assignment, give it a label, and put it in the [MACROS] section of the script file. Using the game action as a guide, we create:

"death ray" = SHF f

Now replace the original assignment with the label to finish the process:

S1 SENDS "death ray"

Example 2: Macros for button control re-mapping to a DirectInput button

Here, the following statement remaps button S5 to be the joystick trigger in DirectInput:

S5 IS B1 REM B1 is trigger

Tthe macro in the [MACROS] section can be:

"trigger" = B1

The re-mapping in the [CONFIG] section then is:

S5 IS "trigger"

home